package com.woniuxy.main.service.impl;

import com.woniuxy.main.mapper.DepartmentMapper;
import com.woniuxy.main.pojo.Department;
import com.woniuxy.main.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*
 *
 *  @author zhc
 *  @create 2019-08-01 14:24
 */
@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> findall() {
        List<Department> departments=departmentMapper.findall();
        return departments;
    }
}
